package com.microservices.auth.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * 用户-用户组关联表
 *
 * @author daiqiaohong
 * @since 2025年1月13日
 */
@Getter
@Setter
@TableName("user_user_group")
@Schema(description = "用户-用户组关联表")
public class UserUserGroupEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("user_id")
    @Schema(description = "用户ID")
    private Long userId;

    @TableField("user_group_id")
    @Schema(description = "用户组ID")
    private Long userGroupId;

}
